package com.nwpu.am.utils.id_generator;

/**
 * IdGenerator
 *
 * @author Roy
 * @version 1.0
 * {@code @date} 2024/6/6
 */

public interface IdGenerator {
    /**
     * 初始化
     *
     * @param workerId
     * @param datacenterId
     */
    void init(long workerId, long datacenterId);

    /**
     * 获取id
     *
     * @return
     */
    long nextId();
}
